<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>单张卡片效果</title>
    <style>
        .card {
            display: flex;
            /* 主轴设置为垂直方向，从下网上排列 */
            flex-direction: column;
            border: 1px solid #ddd;
            padding: 5px;
        }

        .card-cover {
            height: 150px;
            width: 100%;
            background-color: #ddd;
        }

        .card-cover img {
            width: 100%;
            height: 100%;
            /* 图片按照原有比例尺寸来裁剪 */
            object-fit: cover;
        }

        .card-content {
            flex: 1;
        }
    </style>
</head>

<body>
    <div class="card">
        <!-- 图像 -->
        <div class="card-cover">
            <img src="" alt="" />
        </div>
        <div class="card-content">;;;;;;;</div>
    </div>
</body>

</html>